home *** CD-ROM | disk | FTP | other *** search
- -- background: 2725 from stack: in.02
- -- bmap block id: 6320
- -- flags: 0000
- -- background id: 0
- -- name:
-
-
- -- part 29 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=24 top=291 right=311 bottom=42
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: gotpoint
- ----- HyperTalk script -----
- on mouseUp
- global point,bankroll,pointbut
- put word 1 of line 1 of field "bet info" into temp
- get the length of temp
- put char 2 to it of temp into betamount
- add betamount to bankroll
- if (2*betamount)>1000 then put 500 into betamount
- put "$" & (2*betamount) into word 1 of line 1 of field "bet info"
- put word 1 of line 2 of field "bet info" into temp
- get the length of temp
- put char 2 to it of temp into betamount
- subtract betamount from bankroll
- put "$" & 0 into word 1 of line 2 of field "bet info"
- hide bkgnd button pointbut
- put "true" into comingout
- put "$" & bankroll into word 1 of field "bankroll amount"
- end mouseUp
-
-
-
- -- part 1 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=17 top=230 right=259 bottom=70
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Roll Dice
- ----- HyperTalk script -----
- on mouseUp
- global point,bankroll,pointbut,comingout
- put "false" into test
- put random of 6 into dice1
- put random of 6 into dice2
- put dice1+dice2 into dicetotal
- put "?" into field "dice"
-
- put dicetotal into field "dice"
-
- if comingout then
- if dicetotal=7 or dicetotal=11 then
- play "harpsichord" tempo 300 c6 c6 c6
- send "mouseup" to bkgnd button "gotpoint"
- end if
- if dicetotal=2 or dicetotal=3 then
- play "boing"
- send "mouseup" to bkgnd button "nopoint"
- end if
- if dicetotal =12 then
- play "boing"
- put word 1 of line 1 of field "bet info" into temp
- get the length of temp
- put char 2 to it of temp into betamount
- subtract betamount from bankroll
- put "$" & 0 into word 1 of line 1 of field "bet info"
- put "true" into comingout
- put "$" & bankroll into word 1 of field "bankroll amount"
-
- end if
- put dicetotal into dt
- if dt=4 or dt=5 or dt=6 or dt=8 or dt=9 or dt=10 then
-
-
- put dicetotal into point
- put "point" & point into pointbut
- show bkgnd button pointbut
- put "false"into comingout
- end if
- put "true" into test
-
- end if
- if not test then
- if dicetotal = point then
- play "harpsichord" tempo 300 c6 c6 c6
- hide bkgnd button pointbut
- put "true" into comingout
- send "mouseup" to bkgnd button "gotpoint"
- end if
- if dicetotal=7 then
- play "boing"
- hide bkgnd button pointbut
- put "true" into comingout
- send "mouseup" to bkgnd button "nopoint"
- end if
- put "false" into test
- end if
-
- end mouseUp
-
-
-
- -- part 30 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=45 top=282 right=298 bottom=63
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: nopoint
- ----- HyperTalk script -----
- on mouseUp
- global point,bankroll,pointbut
- put word 1 of line 1 of field "bet info" into temp
- get the length of temp
- put char 2 to it of temp into betamount
- subtract betamount from bankroll
- put "$" & 0 into word 1 of line 1 of field "bet info"
- put word 1 of line 2 of field "bet info" into temp
- get the length of temp
- put char 2 to it of temp into betamount
- add betamount to bankroll
- if (2*betamount)>1000 then put 500 into betamount
- put "$" & (2*betamount) into word 1 of line 2 of field "bet info"
- hide bkgnd button pointbut
- put "true" into comingout
- put "$" & bankroll into word 1 of field "bankroll amount"
- end mouseUp
-
-
-
- -- part 2 (button)
- -- low flags: 80
- -- high flags: A000
- -- rect: left=15 top=273 right=330 bottom=72
- -- title width / last selected line: 65535
- -- icon id / first selected line: -15643 / 49893
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Quit Craps
- ----- HyperTalk script -----
- on mouseUp
- answer "What is Your Fancy?" with "Quit" or "New game"or "Cancel"
- if it="quit" then
- visual effect dissolve
- go home
- else send "opencard"
-
- end mouseUp
-
-
-
- -- part 3 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=26 top=189 right=213 bottom=57
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 18
- -- style flags: 256
- -- line height: 24
- -- part name: dice
-
-
- -- part 4 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=406 top=314 right=337 bottom=485
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 36
- -- text size: 18
- -- style flags: 0
- -- line height: 24
- -- part name: bet total
-
-
- -- part 5 (field)
- -- low flags: 01
- -- high flags: 0004
- -- rect: left=202 top=219 right=342 bottom=399
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 12
- -- style flags: 8448
- -- line height: 16
- -- part name: Bet Info
-
-
- -- part 6 (field)
- -- low flags: 01
- -- high flags: 0002
- -- rect: left=239 top=193 right=219 bottom=367
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 0
- -- text size: 18
- -- style flags: 8448
- -- line height: 24
- -- part name: Betting Title
-
-
- -- part 7 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=405 top=236 right=256 bottom=446
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: one dollar
- ----- HyperTalk script -----
- on mouseUp
- global bettotal,bankroll
- if 1+bettotal>bankroll then
- answer "Your bet can not exceed your bankroll" with "ok"
- else
-
- put 1+bettotal into bettotal
- put bettotal into field "bet total"
- end if
-
- end mouseUp
-
-
-
- -- part 8 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=405 top=256 right=276 bottom=446
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: ten dollar
- ----- HyperTalk script -----
- on mouseUp
- global bettotal,bankroll
- if 10+bettotal>bankroll then
- answer "Your bet can not exceed your bankroll" with "ok"
- else
- put 10+bettotal into bettotal
- put bettotal into field "bet total"
- end if
-
- end mouseUp
-
-
-
- -- part 9 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=405 top=277 right=295 bottom=446
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: fifty dollar
- ----- HyperTalk script -----
- on mouseUp
- global bettotal,bankroll
- if 50+bettotal>bankroll then
- answer "Your bet can not exceed your bankroll" with "ok"
- else
-
-
- put 50+bettotal into bettotal
- put bettotal into field "bet total"
- end if
-
- end mouseUp
-
-
-
- -- part 10 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=448 top=276 right=296 bottom=489
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: one hundred dollar
- ----- HyperTalk script -----
- on mouseUp
- global bettotal,bankroll
- if 100+bettotal>bankroll then
- answer "Your bet can not exceed your bankroll" with "ok"
- else
-
-
- put 100+bettotal into bettotal
- put bettotal into field "bet total"
- end if
-
- end mouseUp
-
-
-
- -- part 11 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=448 top=256 right=276 bottom=489
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: twenty five dollar
- ----- HyperTalk script -----
- on mouseUp
- global bettotal,bankroll
- if 25+bettotal>bankroll then
- answer "Your bet can not exceed your bankroll" with "ok"
- else
-
-
- put 25+bettotal into bettotal
- put bettotal into field "bet total"
- end if
-
- end mouseUp
-
-
-
- -- part 12 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=448 top=236 right=256 bottom=489
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: five dollar
- ----- HyperTalk script -----
- on mouseUp
- global bettotal,bankroll
- if 5+bettotal>bankroll then
- answer "Your bet can not exceed your bankroll" with "ok"
- else
- put 5+bettotal into bettotal
- put bettotal into field "bet total"
- end if
-
- end mouseUp
-
-
-
- -- part 13 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=403 top=296 right=314 bottom=491
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: clear bet
- ----- HyperTalk script -----
- on mouseUp
- global bettotal
- put 0 into bettotal
- put bettotal into field "bet total"
- end mouseUp
-
-
-
- -- part 14 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=103 top=167 right=186 bottom=301
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Pass line 1
- ----- HyperTalk script -----
- on mouseUp
- global bettotal,bankroll,comingout
- if bettotal>bankroll then
- answer "Your bet can not exceed your bankroll" with "OK"
- else
- put word 1 of field "bet info" into temp
- get the length of temp
- get char 2 to it of temp
- if not comingout and bettotal<it then
- answer "You may not remove Pass Line bets now" with "OK"
- else
-
- put "$" & bettotal && "on Pass Line" into info
- put info into line 1 of field "bet info"
- end if
- end if
-
- end mouseUp
-
-
-
- -- part 15 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=102 top=20 right=174 bottom=122
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Pass line 2
- ----- HyperTalk script -----
- on mouseUp
- send "mouseup" to bkgnd button "pass line 1"
- end mouseUp
-
-
-
- -- part 16 (button)
- -- low flags: 80
- -- high flags: 0006
- -- rect: left=133 top=55 right=67 bottom=152
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: point4
-
-
- -- part 21 (button)
- -- low flags: 80
- -- high flags: 0006
- -- rect: left=161 top=55 right=67 bottom=180
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: point5
-
-
- -- part 22 (button)
- -- low flags: 80
- -- high flags: 0006
- -- rect: left=189 top=55 right=67 bottom=208
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: point6
-
-
- -- part 23 (button)
- -- low flags: 80
- -- high flags: 0006
- -- rect: left=217 top=55 right=67 bottom=236
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: point8
-
-
- -- part 24 (button)
- -- low flags: 80
- -- high flags: 0006
- -- rect: left=245 top=55 right=67 bottom=264
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: point9
-
-
- -- part 25 (button)
- -- low flags: 80
- -- high flags: 0006
- -- rect: left=272 top=55 right=67 bottom=291
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: point10
-
-
- -- part 27 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=4 top=61 right=88 bottom=82
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: Bankroll amount
-
-
- -- part 28 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=149 top=151 right=168 bottom=301
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- global bettotal,bankroll,comingout
- if bettotal>bankroll then
- answer "Your bet can not exceed your bankroll" with "ok"
- else
- if not comingout and bettotal >0 then
- answer "You may not make Don't Pass bets now" with "OK"
- else
-
-
- put "$" & bettotal && "on Don't Pass" into info
- put info into line 2 of field "bet info"
- end if
- end if
-
- end mouseUp
-
-
-
- -- part 32 (button)
- -- low flags: 00
- -- high flags: A003
- -- rect: left=7 top=109 right=132 bottom=82
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: The Bank
- ----- HyperTalk script -----
- on mouseUp
- global Bankroll
- if bankroll>0 then
- answer "Sorry, you still have cash" with "OK"
- else
-
- answer "You have credit lines available of..." with "500" or "200" or"50"
- if it=500 then add 500 to bankroll
- if it=200 then add 200 to bankroll
- if it=50 then add 50 to bankroll
- put "$" & bankroll into field "bankroll amount"
- end if
-
- end mouseUp
-
-